import java.io.Serializable;
import java.util.HashMap;

/**
 * Class to contain return packet from a node registration.
 * 
 * @author James Marquardt
 * @author Matt Adams
 * @author Justin Wong
 *
 */
public class RegistrationPacket implements Serializable {
	/**
     * 
     */
    private static final long serialVersionUID = 6294588862540627364L;
    /**
	 * The m value of the chord this node is registered to.
	 */
	public final int m_value;
	/**
	 * The id assigned to the registered node.
	 */
	public final int node_id;
	
	public final HostPort initialNodeReference;
//	/**
//	 * The id/location mappings of all nodes currently registered to the chord.
//	 */
//	public final HashMap<Integer, HostPort> node_mappings;
	
	/**
	 * Constructor for a RegistrationPacket
	 * 
	 * @param the_mappings The mappings of all nodes in the system.
	 * @param the_m_value The m value of the system.
	 * @param the_node_id The id of the registered node.
	 */
	public RegistrationPacket(final HostPort initialNodeReference,
								final int the_m_value, final int the_node_id) {
		//node_mappings = the_mappings;
	    this.initialNodeReference = initialNodeReference;
		m_value = the_m_value;
		node_id = the_node_id;
	}
}
